﻿<UserControl x:Class="SUMO.MediaBrowser.Controls.Adorners.Frames.GlassFrame"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <UserControl.Resources>
        <!-- GlassBorderStyle from http://www.sixin.nl/antoni-dol-blog/09-11-15/Silverlight_Style_GlassBorderStyle.aspx -->
        <Style x:Key="GlassBorderStyle" TargetType="Border">
            <Setter Property="BorderThickness" Value="2"/>
            <Setter Property="Padding" Value="5"/>
            <Setter Property="Background">
                <Setter.Value>
                    <LinearGradientBrush EndPoint="0.75,1" StartPoint="0.25,0">
                        <GradientStop Color="#33FFFFFF" Offset="0"/>
                        <GradientStop Color="#C0FFFFFF" Offset="0.287"/>
                        <GradientStop Color="#4011322D" Offset="0.683"/>
                        <GradientStop Color="#33FFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="BorderBrush">
                <Setter.Value>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#5811322D" Offset="0"/>
                        <GradientStop Color="#3EFFFFFF" Offset="0.25"/>
                        <GradientStop Color="#FFFFFFFF" Offset="0.5"/>
                        <GradientStop Color="#3EFFFFFF" Offset="0.75"/>
                        <GradientStop Color="#BFFFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="Effect">
                <Setter.Value>
                    <DropShadowEffect BlurRadius="3" ShadowDepth="3" Opacity="0.5"/>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>
    <!--<Grid>-->
        <Border Margin="-6" Grid.ColumnSpan="3" Grid.RowSpan="3" Style="{StaticResource GlassBorderStyle}" CornerRadius="5" x:Name="borderAdorner" >
        <Border.Clip>
            <GeometryGroup>
                <RectangleGeometry Rect="0,0,10000,10000" />
                <RectangleGeometry x:Name="borderClip" Rect="6,6,400,300" />
            </GeometryGroup>
        </Border.Clip>
    </Border>
    <!--<StackPanel Grid.ColumnSpan="3" Margin="5, -32, 0, 0" HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Horizontal" 
                    UseLayoutRounding="True" Visibility="Collapsed">
        <Ellipse Width="20" Height="20" Fill="#50000000" Stroke="White" ToolTipService.ToolTip="Some adorner element, not yet implemented" Margin="6,0,0,0" />
        <Ellipse Width="20" Height="20" Fill="#50000000" Stroke="White" ToolTipService.ToolTip="Some adorner element, not yet implemented" Margin="6,0,0,0"/>
        <Ellipse Width="20" Height="20" Fill="#50000000" Stroke="White" ToolTipService.ToolTip="Some adorner element, not yet implemented" Margin="6,0,0,0"/>

    </StackPanel>
    </Grid>-->
</UserControl>
